package com.ctshk.rpc.cms.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.cms.dto.PushDTO;
import com.ctshk.rpc.cms.req.PushAddReq;
import com.ctshk.rpc.cms.req.PushQueryReq;
import com.ctshk.rpc.cms.req.PushUpdateReq;
import com.ctshk.rpc.cms.req.UpdateStatusReq;

/**
 * <p>
 * 推送管理 服务类
 * </p>
 *
 * @author LiZhiming
 * @since 2021-04-23
 */
public interface IPushService {
    /**
     * 新增推送
     *
     * @param req
     * @return
     */
    Result insert(PushAddReq req, TokenUser tu);

    /**
     * 查询推送
     *
     * @param pushId
     * @return
     */
    Result<PushDTO> queryById(String pushId);

    /**
     * 推送分页查询
     *
     * @param req
     * @return
     */
    PageResponse<PushDTO> queryList(PushQueryReq req);

    /**
     * 修改推送
     *
     * @param req
     * @return
     */
    Result update(PushUpdateReq req, TokenUser tu);

}
